package cn.edu.lingnan.tourism.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author liyinglai
 */
@Data
@Table(name = "tab_route")
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class Route {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer rid;
    private String rname;
    private Double price;
    private String routeintroduce;
    @Builder.Default
    private String rflag="1";
    private String rdate;
    @Builder.Default
    private String isthemetour="0";
    private Integer count;
    private Integer cid;
    private String rimage;
    private Integer sid;
    private String sourceid;
}
